<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div style="width:300px">
		<ul>		
			<c:if test="${sessionScope.currentSessionUser.roleId == 1}">
				Login as Admin (Welcome, ${sessionScope.currentSessionUser.name}!)
				<br>
				<li><span class="list_img"></span><a href="/LeaveApplicationSystem/AdminPageServlet.html">Manage Staff</a></li>
			
			</c:if>
			<c:if test="${sessionScope.currentSessionUser.roleId == 2}">
				Login as Manager (Welcome, ${sessionScope.currentSessionUser.name}!)
				<br>
				<li><span class="list_img"></span><a href="/LeaveApplicationSystem/viewforapproval">View Application for Approval</a></li>
				<li><span class="list_img"></span><a href="/LeaveApplicationSystem/viewempleave">View Employee Leave History</a></li>
				
			</c:if>
			<c:if test="${sessionScope.currentSessionUser.roleId == 3}">
				Login as Staff (Welcome, ${sessionScope.currentSessionUser.name}!)
				<br>				
				<li><span class="list_img"></span><a href="ApplyLeaveForm.jsp">Apply Leave</a></li>
				<li><span class="list_img"></span><a href="/LeaveApplicationSystem/viewpersonalleave">View Personal Leave History</a></li>
			</c:if>
			<li><span class="list_img"><a href="/LeaveApplicationSystem/LogOutServlet">Logout </a></span></li>
		</ul>
</div>